package cn.edu.jxyy.p4.service.impl;

import cn.edu.jxyy.p4.dao.UserDao;
import cn.edu.jxyy.p4.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    //使用@Resource注解注入UserDao
//    @Resource(name="userDao")
    @Autowired
    private UserDao userDao;
    public void save(){
        this.userDao.save();
        System.out.println("执行UserServiceImpl.save()");
    }

    @Override
    public boolean login(String name, String password) {
        return false;
    }
}
